package com.job.Gai_Yian.Homework0714;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @author Gai_Yian
 * @version 1.0
 * @since 2022-07-15 00:12:48
 */
public class UseSystem {
    public static void main(String[] args) {
        int[] src={1,2,3,4,5};
        int[] dest=new int[5];
        System.arraycopy(src,1,dest,1,3);
        System.out.println(Arrays.toString(dest));

        Scanner sc=new Scanner(System.in);
        while (true){
            System.out.println("输入暗号");
            String pass=sc.next();
            if ("bye".equals(pass)){
                System.exit(0);
            }
            System.out.println("暗号不正确！你还有机会去输入！");
        }
    }
}
